-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#443 - DataTable arguments aren't working with cucumber-scala #455
Conversation
…ren't working with cucumber-scala
Pulling from cucumber-jvm root to keep in line.
…(i.e. data tables) - need to implement xstream parser for bigint and bigdecimal
Does this respect the Locale of the feature file? For example the String The Java transformations respect the Locale. Would it be possible to make the Scala code use the Java transformations as they are already quite elaborate? They also support date conversions. |
I don't believe so, as the Scala layer (as far as I can tell) has basically always treated every type as a String through the core ParameterInfo bits and pieces - hence why the DataTable was failing (could not be represented as a string and then converted in the Scala layer as the other, more primitive, types could). Sure, I'll have a look at making the Scala layer use the Java transformations - will be a bigger change, but makes most sense in the long run. |
Thanks, shall I merge this in the interim? |
…he locale based differences, and customer mappers
Hi, don't worry about merging in yet - I'm almost done with the extra refactoring now. Just want to write some additional tests (specifically concerning the custom object converters, which weren't previously supported), before merging over. Should be done pretty soon - cheers. |
…ther was a half implemented test case for custom mappers) should build ok now.
Hi, should be good to go now. I've refactored (as discussed) the Scala layer to use the core type-transformation, which should now enable the following functionality which I don't believe previously worked :
and added appropriate cucumber tests to exercise the functionality. Let me know if there's anything else you need. Cheers Matt |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hi,
I've had a go at resolving #443 for Scala, and started the move towards using core for all data transformations, rather than treating all types as Strings until the Scala layer as was before. At the very least it should provide some insight into the issue and some more comprehensive tests around the type mappings.
Cheers
Matt